<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
Route::any('/', function () {
    return response()->json(success());
});

Route::any('/userinfo', 'WechatController@userinfo');
Route::any('/getSign', 'WechatController@getSign');
Route::any('/refund', 'PayController@refund');


#####圈子
//圈主信息
Route::any('/community/self/info', "CommunityController@selfInfo");
//圈子信息
Route::any('/community/info', "CommunityController@communityInfo");
//修改圈子信息
Route::any('/community/modify', "CommunityController@communityModify");
//用户列表
Route::any('/community/user/list', "CommunityController@userList");
//修改用户状态
Route::any('/community/user/status', "CommunityController@userStatus");
//文章列表
Route::any('/community/postings/list', "CommunityController@postingsList");
//删除文章
Route::any('/community/postings/del', "CommunityController@postingsDel");
//修改文章加精状态
Route::any('/community/postings/hot', "CommunityController@postingsHot");
//举报信息
Route::any('/community/report', "CommunityController@report");


//中秋节游戏
Route::any('/midautumn/gameIndex', 'MidAutumnController@gameIndex');
//开始游戏
Route::any('/midautumn/startGame', 'MidAutumnController@startGame');
//增加积分
Route::any('/midautumn/addIntegral', 'MidAutumnController@addIntegral');
//结束游戏
Route::any('/midautumn/endGame', 'MidAutumnController@endGame');
//抽奖
Route::any('/midautumn/luckDraw', 'MidAutumnController@luckDraw');
//获奖记录
Route::any('/midautumn/drawList', 'MidAutumnController@drawList');


Route::post('/runGame/config', "RunGameController@config");
Route::post('/runGame/startGame', "RunGameController@startGame");
Route::post('/runGame/endGame', "RunGameController@endGame");
Route::post('/runGame/rank', "RunGameController@rank");
Route::post('/runGame/rewards', "RunGameController@rewards");
Route::post('/runGame/rewardInfo', "RunGameController@rewardInfo");
Route::post('/runGame/acceptPrice', "RunGameController@acceptPrice");